from flask import Blueprint

from .report_controller import ReportController

report_blueprint = Blueprint('report', __name__)
report_controller = ReportController()

# 路由映射
# report_blueprint.add_url_rule('/xxx', view_func=report_controller.xxx, methods=['POST'])

report_blueprint.add_url_rule('/getBarChart', view_func=report_controller.get_bar_chart_data, methods=['POST'])
report_blueprint.add_url_rule('/getPieChart', view_func=report_controller.get_pie_chart_data, methods=['POST'])
report_blueprint.add_url_rule('/getMapChart', view_func=report_controller.get_map_chart_data, methods=['POST'])